package dp05.leertaak1.command.implementations;

import dp05.leertaak1.command.definitions.Command;
import dp05.leertaak1.dao.definitions.DAO;

public class Total extends Command
{

    public Total(DAO actionReceiver)
    {
        super(actionReceiver);
    }

    @Override
    public String execute()
    {
        int total = actionReceiver.total();
        return String.format("Sum of the elementens in the DS: %d", total);
    }
}